package com.link.base.base.product.service;

import com.link.base.base.product.model.PcdData;
import com.link.base.base.product.model.PcdDataExcelMo;
import com.link.core.basic.service.BasicService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * pcd对象
 *
 * @date 2023-08-15 09:04:14
 */
public interface PcdDataService extends BasicService<PcdData> {

    /**
     * 解析excel原始文件
     * @param multipartFile
     * @throws Exception
     */
    public void uploadExcelAnalysis(MultipartFile multipartFile,Long headId) throws Exception;

    /**
     * 批量导入，手动回滚
     * @param datas
     */
    public void batchImportData(List<PcdDataExcelMo> datas,Long headId);

    /**
     *
     * @param list
     * @throws Exception
     */
    public void batchInsertExcels(List<PcdDataExcelMo> list,Long headId) throws Exception;
}
